<?php
session_start();
if(!isset($_SESSION['email'])){
		header("Location: connexion.php");		
}
if(isset($_POST['serie_bac'])){
	$_SESSION['serie_bac'] = $_POST['serie_bac'];
	$_SESSION['annee_bac'] = $_POST['annee_bac'];
	$_SESSION['ecole_bac'] = $_POST['ecole_bac'];
	$_SESSION['mention_bac'] = $_POST['mention_bac'];
	$_SESSION['type_diplome'] = $_POST['type_diplome'];
	$_SESSION['option_diplome'] = $_POST['option_diplome'];
	$_SESSION['annee_diplome'] = $_POST['annee_diplome'];
	$_SESSION['universite_diplome'] = $_POST['universite_diplome'];
	$_SESSION['mention_diplome'] = $_POST['mention_diplome'];
	
	$_SESSION['type_diplome1'] = $_POST['type_diplome1'];
	$_SESSION['option_diplome1'] = $_POST['option_diplome1'];
	$_SESSION['annee_diplome1'] = $_POST['annee_diplome1'];
	$_SESSION['universite_diplome1'] = $_POST['universite_diplome1'];
	$_SESSION['mention_diplome1'] = $_POST['mention_diplome1'];
	
	die("<meta http-equiv='refresh' content=0;URL='etape4.php'>");
}
?>
<!DOCTYPE html>
<html lang="fr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Portail web dédié à la Gestion Administrative et Pédagogique du Master 2 de Recherche Système Complexe UMMISCO">
    <meta name="author" content="DIC1 Génie Info 2013-2014 / ESP Dakar">
    <meta http-equiv="Content-Language" content="fr" />
    <link rel="shortcut icon" href="../assets/ico/favicon.png">

    <title> UMMISCO - Master 2 SysCom </title>

    <!-- Bootstrap core CSS -->
    <link href="../assets/css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../assets/css/main.css" rel="stylesheet">
    <link rel="stylesheet" href="../assets/css/icomoon.css">
    <link href="assets/css/animate-custom.css" rel="stylesheet">
    <link rel="stylesheet" href="../assets/css/bootstrap.css"/>
	<link rel="stylesheet" href="../assets/css/bootstrapValidator.min.css"/>
	<link rel="stylesheet" type="text/css" href="css/local.css" />


    
    <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Raleway:400,300,700' rel='stylesheet' type='text/css'>
    
    
    
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="assets/js/html5shiv.js"></script>
      <script src="assets/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body data-spy="scroll" data-offset="0" data-target="#navbar-main">
  
  	<div id="navbar-main">
      <!-- Fixed navbar -->
	    <div class="navbar navbar-inverse navbar-fixed-top" id="header-main">
	      <div class="container">
	        <div class="navbar-header">
	          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
	            <span class="icon icon-shield" style="font-size:30px; color:#3498db;"></span>
	          </button>
	          <a class="navbar-brand hidden-xs hidden-sm" href="#home"><span class="glyphicon glyphicon-home"></span></a>
	        </div>
	        <div class="navbar-collapse collapse">
	          <ul class="nav navbar-nav">
		      	<li><a href="../index.php#home" class="smoothScroll">Accueil</a></li>
				<li> <a href="../index.php#about" class="smoothScroll"> Présentation </a></li>
				<li> <a href="../index.php#direction" class="smoothScroll"> Direction</a></li>
				<li> <a href="../index.php#recherche" class="smoothScroll"> Recherche </a></li>
				<li> <a href="../index.php#formation" class="smoothScroll"> Formation </a></li>
				<li> <a href="../index.php#pre-inscription" class="smoothScroll"> Pré-inscription</a></li>
				<li> <a href="../index.php#contact" class="smoothScroll"> Contact</a></li>
			 </ul>
	        </div><!--/.nav-collapse -->
	      </div>
	    </div>
	    </div>

		<!-- ==== HEADERWRAP ==== -->
			<div class="container" name="pre-inscription" id="pre-inscription">
				<a name="preinscription"></a>
				<div class="row white">
				
				 <div class="panel panel-info">
			      <div class="panel-heading">
			        <h3 class="panel-title"> <h1 class="centered"> Pré-inscription </h1></h3>
			      </div>
			      <div class="panel-body" align="center">
						Suivez les différentes étapes de ce formulaire pour soumettre votre candidature.
			      </div>
			    </div>

	       <div>	       	
	       	 <nav class="navbar navbar-inverse" role="navigation">
		      <div class="container-fluid">
		        <!-- Brand and toggle get grouped for better mobile display -->
		        <div class="navbar-header">
		          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9">
		            <span class="sr-only">Toggle navigation</span>
		            <span class="icon-bar"></span>
		            <span class="icon-bar"></span>
		            <span class="icon-bar"></span>
		          </button>
		          <a class="navbar-brand" href="#">Les différentes étapes</a>
		        </div>
		
		        <!-- Collect the nav links, forms, and other content for toggling -->
		        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-9">
		          <ul class="nav navbar-nav">
		          	<li><a href="etape1.php">1. Configuer Compte</a></li>
		            <li><a href="etape2.php">2. Vos Coordonnées</a></li>
		            <li class="active"><a>3. Votre Parcours académique</a></li>
		          	<li><a>4. Choix d'une formation</a></li>
		          	<li><a>5. Soumettre le dossier</a></li>
		          </ul>
		        </div><!-- /.navbar-collapse -->
		      </div><!-- /.container-fluid -->
		      <br />
		      <div class="progress">
		  		<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
		    		dossier complet à 60%
		  		</div>
			 </div>
		    </nav>
		    <div class="well">
		    <div class="row text-center">
	            <h2>Parcours académique</h2>
	        </div>
	 
	        <div class="jumbotron" >
	        <h2>Baccalauréat</h2>
	        </div>
	        
	        <form action="etape3.php" method="POST">
	        <div>
	            <label for="serie_bac" class="col-md-2">
	                Série:
	            </label>
	            <div class="col-md-9">
	               <select name="serie_bac" id="serie_bac" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['serie_bac'])){ if ($_SESSION['serie_bac']=='S1 (Sciences exactes)') echo "Selected" ;} ?>>S1 (Sciences exactes)</option>
	                    <option <?php if (isset ($_SESSION['serie_bac'])){ if ($_SESSION['serie_bac']=='S2 (Sciences expérimentales)') echo "Selected" ;} ?>>S2 (Sciences expérimentales)</option>
	                    <option <?php if (isset ($_SESSION['serie_bac'])){ if ($_SESSION['serie_bac']=='S3 (Mécanique)') echo "Selected" ;} ?>>S3 (Mécanique)</option>
	                    <option <?php if (isset ($_SESSION['serie_bac'])){ if ($_SESSION['serie_bac']=='T (Technique)') echo "Selected" ;} ?>>T (Technique)</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>    
	        <div>
	            <label for="annee_bac" class="col-md-2">
	                Année:
	            </label>
	            <div class="col-md-9">
	            	<select name="annee_bac"  id="annee_bac" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1990') echo "Selected" ;} ?>>1990</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1991') echo "Selected" ;} ?>>1991</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1992') echo "Selected" ;} ?>>1992</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1993') echo "Selected" ;} ?>>1993</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1994') echo "Selected" ;} ?>>1994</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1995') echo "Selected" ;} ?>>1995</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1996') echo "Selected" ;} ?>>1996</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1997') echo "Selected" ;} ?>>1997</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1998') echo "Selected" ;} ?>>1998</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='1999') echo "Selected" ;} ?>>1999</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2000') echo "Selected" ;} ?>>2000</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2001') echo "Selected" ;} ?>>2001</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2002') echo "Selected" ;} ?>>2002</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2003') echo "Selected" ;} ?>>2003</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2004') echo "Selected" ;} ?>>2004</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2005') echo "Selected" ;} ?>>2005</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2006') echo "Selected" ;} ?>>2006</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2007') echo "Selected" ;} ?>>2007</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2008') echo "Selected" ;} ?>>2008</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2009') echo "Selected" ;} ?>>2009</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2010') echo "Selected" ;} ?>>2010</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2011') echo "Selected" ;} ?>>2011</option>
	                    <option <?php if (isset ($_SESSION['annee_bac'])){ if ($_SESSION['annee_bac']=='2012') echo "Selected" ;} ?>>2012</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>   
	        <div>
	            <label for="ecole_bac" class="col-md-2">
	                Etablissement:
	            </label>
	            <div class="col-md-9">
	                <input type="text" class="form-control" id="ecole_bac" name="ecole_bac" <?php if (isset ($_SESSION['ecole_bac'])){echo "value='".$_SESSION['ecole_bac']."'" ;} ?> placeholder="Où avez vous eu votre bac ?">
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div> 
	        <div>
	            <label for="mention_bac" class="col-md-2">
	                Mention:
	            </label>
	            <div class="col-md-9">
	                <select id="mention_bac" name="mention_bac" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['mention_bac'])){ if ($_SESSION['mention_bac']=='Excellent') echo "Selected" ;} ?>>Excellent</option>
	                    <option <?php if (isset ($_SESSION['mention_bac'])){ if ($_SESSION['mention_bac']=='Très Bien') echo "Selected" ;} ?>>Très Bien</option>
	                    <option <?php if (isset ($_SESSION['mention_bac'])){ if ($_SESSION['mention_bac']=='Bien') echo "Selected" ;} ?>>Bien</option>
	                    <option <?php if (isset ($_SESSION['mention_bac'])){ if ($_SESSION['mention_bac']=='Assez bien') echo "Selected" ;} ?>>Assez bien</option>
	                    <option <?php if (isset ($_SESSION['mention_bac'])){ if ($_SESSION['mention_bac']=='Passable') echo "Selected" ;} ?>>Passable</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>  
       		 </div> 
	         <br />  
	         <br />
	         <br />    
	         <br />  
	         <br />
	         <br />
	         <br />  
         </div> 
         
       	 <div class="jumbotron">
	        <h2>Autres diplômes</h2>
	        <div class="jumbotron" >
        	 <div>
	            <label for="type_diplome" class="col-md-2">
	                Type:
	            </label>
	            <div class="col-md-9">
	               <select name="type_diplome" id="type_diplome" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='Licence') echo "Selected" ;} ?>> Licence </option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='Master') echo "Selected" ;} ?>> Master </option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='DIC') echo "Selected" ;} ?>> DIC </option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='DEUG') echo "Selected" ;} ?>> DEUG </option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='DIT') echo "Selected" ;} ?>> DIT </option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='Doctorat') echo "Selected" ;} ?>> Doctorat </option>
	                    <option <?php if (isset ($_SESSION['type_diplome'])){ if ($_SESSION['type_diplome']=='PhD') echo "Selected" ;} ?>> PhD </option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>  
	        
	        <div>
	            <label for="option_diplome" class="col-md-2">
	                Option :
	            </label>
	            <div class="col-md-9">
	               <select name="option_diplome" id="option_diplome" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['option_diplome'])){ if ($_SESSION['option_diplome']=='Mathématiques') echo "Selected" ;} ?>> Mathématiques </option>
	                    <option <?php if (isset ($_SESSION['option_diplome'])){ if ($_SESSION['option_diplome']=='Informatique') echo "Selected" ;} ?>> Informatique</option>
	                    <option <?php if (isset ($_SESSION['option_diplome'])){ if ($_SESSION['option_diplome']=='Physique') echo "Selected" ;} ?>> Physique</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>    
	        <div>
	            <label for="annee_diplome" class="col-md-2">
	                Année:
	            </label>
	            <div class="col-md-9">
	           		<select name="annee_diplome"  id="annee_diplome" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1990') echo "Selected" ;} ?>>1990</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1991') echo "Selected" ;} ?>>1991</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1992') echo "Selected" ;} ?>>1992</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1993') echo "Selected" ;} ?>>1993</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1994') echo "Selected" ;} ?>>1994</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1995') echo "Selected" ;} ?>>1995</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1996') echo "Selected" ;} ?>>1996</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1997') echo "Selected" ;} ?>>1997</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1998') echo "Selected" ;} ?>>1998</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='1999') echo "Selected" ;} ?>>1999</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2000') echo "Selected" ;} ?>>2000</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2001') echo "Selected" ;} ?>>2001</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2002') echo "Selected" ;} ?>>2002</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2003') echo "Selected" ;} ?>>2003</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2004') echo "Selected" ;} ?>>2004</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2005') echo "Selected" ;} ?>>2005</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2006') echo "Selected" ;} ?>>2006</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2007') echo "Selected" ;} ?>>2007</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2008') echo "Selected" ;} ?>>2008</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2009') echo "Selected" ;} ?>>2009</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2010') echo "Selected" ;} ?>>2010</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2011') echo "Selected" ;} ?>>2011</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome'])){ if ($_SESSION['annee_diplome']=='2012') echo "Selected" ;} ?>>2012</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>   
	        <div>
	            <label for="universite_diplome" class="col-md-2">
	                Etablissement:
	            </label>
	            <div class="col-md-9">
	                <input type="text" class="form-control" id="universite_diplome" name="universite_diplome" <?php if (isset ($_SESSION['universite_diplome'])){echo "value='".$_SESSION['universite_diplome']."'" ;} ?> placeholder="Où avez vous obtenu ce diplôme ?">
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div> 
	        <div>
	            <label for="mention_diplome" class="col-md-2">
	                Mention:
	            </label>
	            <div class="col-md-9">
	                <select name="mention_diplome" id="mention_diplome" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome'])){ if ($_SESSION['mention_diplome']=='Excellent') echo "Selected" ;} ?>>Excellent</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome'])){ if ($_SESSION['mention_diplome']=='Très Bien') echo "Selected" ;} ?>>Très Bien</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome'])){ if ($_SESSION['mention_diplome']=='Bien') echo "Selected" ;} ?>>Bien</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome'])){ if ($_SESSION['mention_diplome']=='Assez bien') echo "Selected" ;} ?>>Assez bien</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome'])){ if ($_SESSION['mention_diplome']=='Passable') echo "Selected" ;} ?>>Passable</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>   
	         <br />  
	         <br />
	         <br />    
	         <br />  
         </div> 
         	<a title="Ajouter un nouveau diplôme" class="btn btn-success btn-lg" style="color: white" onclick="javascript:afficher_cacher('diplome1');">
	            +
	            </a>
        </div>
        
        <div class="row" id='bouton1'>
            <div class="col-md-2">
            </div>
            <div class="col-md-10">
               	<button class="btn btn-primary btn-lg">
            		<a href="etape2.php" style="color: white">
                		Précédent
            		</a>
            	</button>
                <button type="submit" class="btn btn-info btn-lg">
                    Suivant
                </button>
            </div>
        </div>
        
        <div class="jumbotron" id="diplome1" style="visibility: hidden;">
	        <h2>Autres diplômes</h2>
	        <div class="jumbotron" >
        	 <div>
	            <label for="type_diplome1" class="col-md-2">
	                Type:
	            </label>
	            <div class="col-md-9">
	               <select name="type_diplome1" id="type_diplome1" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='Licence') echo "Selected" ;} ?>> Licence </option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='Master') echo "Selected" ;} ?>> Master </option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='DIC') echo "Selected" ;} ?>> DIC </option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='DEUG') echo "Selected" ;} ?>> DEUG </option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='DIT') echo "Selected" ;} ?>> DIT </option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='Doctorat') echo "Selected" ;} ?>> Doctorat </option>
	                    <option <?php if (isset ($_SESSION['type_diplome1'])){ if ($_SESSION['type_diplome1']=='PhD') echo "Selected" ;} ?>> PhD </option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>  
	        
	        <div>
	            <label for="option_diplome1" class="col-md-2">
	                Option :
	            </label>
	            <div class="col-md-9">
	               <select name="option_diplome1" id="option_diplome1" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['option_diplome1'])){ if ($_SESSION['option_diplome1']=='Mathématiques') echo "Selected" ;} ?>> Mathématiques </option>
	                    <option <?php if (isset ($_SESSION['option_diplome1'])){ if ($_SESSION['option_diplome1']=='Informatique') echo "Selected" ;} ?>> Informatique</option>
	                    <option <?php if (isset ($_SESSION['option_diplome1'])){ if ($_SESSION['option_diplome1']=='Physique') echo "Selected" ;} ?>> Physique</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>    
	        <div>
	            <label for="annee_diplome1" class="col-md-2">
	                Année:
	            </label>
	            <div class="col-md-9">
	           		<select name="annee_diplome1"  id="annee_diplome1" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1990') echo "Selected" ;} ?>>1990</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1991') echo "Selected" ;} ?>>1991</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1992') echo "Selected" ;} ?>>1992</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1993') echo "Selected" ;} ?>>1993</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1994') echo "Selected" ;} ?>>1994</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1995') echo "Selected" ;} ?>>1995</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1996') echo "Selected" ;} ?>>1996</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1997') echo "Selected" ;} ?>>1997</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1998') echo "Selected" ;} ?>>1998</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='1999') echo "Selected" ;} ?>>1999</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2000') echo "Selected" ;} ?>>2000</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2001') echo "Selected" ;} ?>>2001</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2002') echo "Selected" ;} ?>>2002</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2003') echo "Selected" ;} ?>>2003</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2004') echo "Selected" ;} ?>>2004</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2005') echo "Selected" ;} ?>>2005</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2006') echo "Selected" ;} ?>>2006</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2007') echo "Selected" ;} ?>>2007</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2008') echo "Selected" ;} ?>>2008</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2009') echo "Selected" ;} ?>>2009</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2010') echo "Selected" ;} ?>>2010</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2011') echo "Selected" ;} ?>>2011</option>
	                    <option <?php if (isset ($_SESSION['annee_diplome1'])){ if ($_SESSION['annee_diplome1']=='2012') echo "Selected" ;} ?>>2012</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>   
	        <div>
	            <label for="universite_diplome1" class="col-md-2">
	                Etablissement:
	            </label>
	            <div class="col-md-9">
	                <input type="text" class="form-control" id="universite_diplome1" name="universite_diplome1" <?php if (isset ($_SESSION['universite_diplome1'])){echo "value='".$_SESSION['universite_diplome1']."'" ;} ?> placeholder="Où avez vous obtenu ce diplôme ?">
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div> 
	        <div>
	            <label for="mention_diplome1" class="col-md-2">
	                Mention:
	            </label>
	            <div class="col-md-9">
	                <select name="mention_diplome1" id="mention_diplome1" class="form-control">
	                    <option value="NULL">--Selectionner--</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome1'])){ if ($_SESSION['mention_diplome1']=='Excellent') echo "Selected" ;} ?>>Excellent</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome1'])){ if ($_SESSION['mention_diplome1']=='Très Bien') echo "Selected" ;} ?>>Très Bien</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome1'])){ if ($_SESSION['mention_diplome1']=='Bien') echo "Selected" ;} ?>>Bien</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome1'])){ if ($_SESSION['mention_diplome1']=='Assez bien') echo "Selected" ;} ?>>Assez bien</option>
	                    <option <?php if (isset ($_SESSION['mention_diplome1'])){ if ($_SESSION['mention_diplome1']=='Passable') echo "Selected" ;} ?>>Passable</option>
                	</select>
	            </div>
	            <div class="col-md-1">
	                <i class="fa fa-lock fa-2x"></i>
	            </div>
	        </div>   
	         <br />  
	         <br />
	         <br />    
	         <br />  
         </div> 
         	<a title="Ajouter un nouveau diplôme" class="btn btn-success btn-lg" style="color: white" >
	            +
	            </a>
        </div>
         
        <div class="row" id='bouton2' style="visibility: hidden;">
            <div class="col-md-2">
            </div>
            <div class="col-md-10">
               	<button class="btn btn-primary btn-lg">
            		<a href="etape2.php" style="color: white">
                		Précédent
            		</a>
            	</button>
                <button type="submit" class="btn btn-info btn-lg">
                    Suivant
                </button>
            </div>
        </div>
        </form>
    </div>  
  </div>
  </div>
  </div>
	     
	    	   

		<div id="footerwrap">
			<div class="container">
				<h4>Created by <a href="http://code.google.com/p/master2syscom" target="_blank">DIC1 Info ESP</a> - Copyright 2014</h4>
			</div>
		</div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
		
	<script src="assets/js/jquery.min.js"></script>
	<script type="text/javascript" src="../assets/js/modernizr.custom.js"></script>
	<script type="text/javascript" src="../assets/js/jquery.min.js"></script>
	<script type="text/javascript" src="../assets/js/bootstrapValidator.min.js"></script>
	
	<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../assets/js/retina.js"></script>
	<script type="text/javascript" src="../assets/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="../assets/js/smoothscroll.js"></script>
	<script type="text/javascript" src="../assets/js/jquery-func.js"></script>
	<script>	
		$(document).ready(function() {
	    $('.col-lg-12').bootstrapValidator({
	        message: 'This value is not valid',
	        feedbackIcons: {
	            valid: 'glyphicon glyphicon-ok',
	            invalid: 'glyphicon glyphicon-remove',
	            validating: 'glyphicon glyphicon-refresh'
	        },
	        fields: {
	            email: {
	                validators: {
	                    notEmpty: {
	                        message: 'The email is required and cannot be empty'
	                    },
	                    emailAddress: {
	                        message: 'The input is not a valid email address'
	                    }
	                }
	            }
	        }
	    });
	});
	
	function afficher_cacher(id)
		{
		    if(document.getElementById(id).style.visibility=="hidden")
		    {
		        document.getElementById(id).style.visibility="visible";
		        document.getElementById('bouton1').style.visibility="hidden";
		        document.getElementById('bouton2').style.visibility="visible";
		        
		    }
		    else
		    {
		        document.getElementById(id).style.visibility="hidden";
		        document.getElementById('bouton1').style.visibility="visible";
		        document.getElementById('bouton2').style.visibility="hidden";
		    }
		    return true;
		}
</script>
  </body>
</html>
